package com.scienview.test;

import java.lang.reflect.Method;
import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;

import com.scienview.core.util.ClassSearchUtil;

public class RequestURIHelper {

	public static void main(String[]args){
		List<Class<?>> list=ClassSearchUtil.getAnnotationClass("com.scienview.**.controller", RequestMapping.class);
		for(Class<?> clazz:list){
			String classMapping=clazz.getAnnotation(RequestMapping.class).value()[0];
			for(Method method:clazz.getMethods()){
				if(method.isAnnotationPresent(RequestMapping.class)){
					System.out.println(classMapping+method.getAnnotation(RequestMapping.class).value()[0]);
					PermissionHelper.parseMethod(classMapping, method);
				}
			}
				
			}
		System.out.println(PermissionHelper.map);
	}
}
